package com.onlyTest.proxyTest;

/**
 * @author wang
 * @Description
 * @create 2021-11-22 9:15
 */
public class ProxyClient {
    public static void main(String[] args) {
        ITeacher teacher = new Teacher();
        ProxyFactory proxyFactory = new ProxyFactory(teacher);
        ITeacher proxyInstance = (ITeacher)proxyFactory.getProxyInstance();
        proxyInstance.teachTest("2222");
    }
}
